package ahut2020.day06;

public class P04ExceptionHandleFinally {
    static int  f()
    {
        try{
            //待捕获代码
            int x=1/0;
        }catch(Exception e){
            System.out.println("catch is begin");
            return 1;
        }finally{
            System.out.println("finally is begin");
            return 0;
        }


    }
    public static void main(String[] args) {
        System.out.println(f());
    }
}
